//
// Created by Lenovo on 2020/10/5.
//

#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
    int t; scanf("%d", &t);
    while (t--)
    {
        int n;
        scanf("%d", &n);
        int u, v;
        for (int i = 1; i < n; i++) scanf("%d%d", &u, &v);
        if (n%2) printf("Alice\n");
        else printf("Bob\n");
    }
}